package com.yeswater.multithread.chapter1.test1_11.test8;

import java.sql.SQLOutput;

/**
 * author : yeswater
 * date : 2023/10/19
 */

public class ThreadB extends Thread{

    private MyService obj;

    public ThreadB(MyService obj) {
        super();
        this.obj = obj;
    }

    @Override
    public void run() {
        System.out.println(obj.getUsername() + " " + obj.getPassword());
        System.out.println("  end " + System.currentTimeMillis());
    }
}
